package io.github.codergjw.entity;import io.github.codergjw.enums.AuthResponseStatus;import lombok.*;import java.io.Serializable;/** * @ClassName: AuthResponse * @Author: 小飞 * @Date: 2023/5/9 21:01 * @Description: YaLingAuth 统一授权响应类 */@Getter@Setter@Builder@NoArgsConstructor@AllArgsConstructorpublic class AuthResponse<T> implements Serializable {    /**     * 授权响应状态码     */    private int code;    /**     * 授权响应信息     */    private String msg;    /**     * 授权响应数据，当且仅当 code = 2000 时返回     */    private T data;    /**     * 是否请求成功     *     * @return true or false     */    public boolean ok() {        return this.code == AuthResponseStatus.SUCCESS.getCode();    }}